package org.rsbot.event.impl;

import java.awt.Graphics;
import org.rsbot.bot.Bot;
import org.rsbot.event.listeners.TextPaintListener;
import org.rsbot.util.StringUtil;

public class TUserInputAllowed
  implements TextPaintListener
{
  private Bot bot;

  public TUserInputAllowed(Bot paramBot)
  {
    this.bot = paramBot;
  }

  public int drawLine(Graphics paramGraphics, int paramInt) {
    StringUtil.drawLine(paramGraphics, paramInt++, new StringBuilder().append("User Input: ").append((this.bot.inputFlags == 0) && (!this.bot.overrideInput) ? new StringBuilder().append("[red]Disabled (").append(this.bot.inputFlags).append(")").toString() : "[green]Enabled").toString());

    return paramInt;
  }
}